import Vue from 'vue'
import App from './App.vue'
import router from "@/router/index.js"
import store from "@/store/index.js"
import { Button, Form, Field, NavBar, Icon, Toast } from "vant";

Vue.use(Button)
  .use(Form)
  .use(Field)
  .use(NavBar)
  .use(Icon)
  .use(Toast)

Vue.config.productionTip = false

// 全局过滤器(对价格保留两位小数)
Vue.filter('moneyFormat', function(val) {
    return val.toFixed(2)
})

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
